<?php
namespace app\manage\validate;

use think\Validate;

/**
 * 行为验证器
 * @package app\menus\validate
 * @author
 */
class Store extends Validate
{
    //定义验证规则
    protected $rule = [
        'avatar'  => 'require',
        'start_time'  => 'require',
        'end_time'  => 'require',
        'mobile'  => 'require|mobile',
    ];

    protected $message = [
        'avatar.require'       => '头像必须',
        'start_time.require'   => '请填写开始时间',
        'end_time.require'     => '请填写结束时间',
        'mobile'               => '请填写手机号',
        'mobile.mobile'        => '请填写正确的手机号',
    ];

}
